document.write("<script src=http://dns110.website360.cn/Count.aspx?wid=1178&m="+readCookie('stat_Mac_1178')+"&cs="+readCookie('stat_cs_1178')+"&f="+readCookie('stat_f_1178')+"&sw="+(screen.width)+"&sh="+(screen.height)+"&c="+(screen.colorDepth)+"&ir="+readIsRefrensh('stat_isRefrensh_1178')+"&jl="+JsLocationUrl('stat_f_1178')+"&r="+GetReferrer()+"></script>");document.write("");
//创建一个COOKIE
function writeCookie(name, value, hours,d){
  var expire = "";
  var domain="";
  if(hours != null)  {
    expire = new Date((new Date()).getTime() + hours * 3600000);
    expire = "; expires=" + expire.toGMTString();
    domain = "; domain=" + d;
  }
  document.cookie = name + "=" + escape(value) + expire+domain+ "; path=/;";
}
//读取COOKE
function readCookie(name){
  var cookieValue = "";
  var search = name + "=";
  if(document.cookie.length > 0){ 
    offset = document.cookie.indexOf(search);
    if (offset != -1){ 
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) end = document.cookie.length;
      cookieValue = unescape(document.cookie.substring(offset, end))
    }
  }
  return cookieValue;
}
//添加一个COOKIE
function addCookie(objName,objValue,objHours,d)  {
    var str = objName + "=" + escape(objValue);
    if(objHours > 0){
     var date = new Date();
     var ms = objHours*3600*1000;
     date.setTime(date.getTime() + ms);
     str += "; expires=" + date.toGMTString()+ "; path=/;";
    }
    document.cookie = str+"; domain=" + d;;
}
//判断是不是进行刷新的
function readIsRefrensh(name){
    var lastUrl=readCookie(name).toString(10).toLowerCase(); // 将COOKIE读取出来，转成10进制数，再转成小写
    var currentUrl=document.location.toString(10).toLowerCase(); //读取当前的URL
    if(lastUrl==currentUrl) {
       return "true";
    }
    else{
       return "false";
   } 
}
//判断本地的COOKIE存在不存在
function JsLocationUrl(name){ 
   if(readCookie(name)=="true"){
       return "true";
   }  
   else{   
      return "false";
   }
}
//获取
function GetReferrer()
{
  var url=escape(document.referrer);  
  
  if(url.length>400)
  {
     return url.substring(0,400);
  }
  else
  {
        return url;
  }  
}